package com.css.fxfzxczh.modules.disasterSituationDataManage.lifeline.repository;

import com.css.fxfzxczh.modules.disasterSituationDataManage.lifeline.entity.Lifeline;
import com.css.fxfzxczh.modules.disasterSituationDataManage.lifeline.entity.LifelineType;
import com.css.fxfzxczh.modules.disasterSituationDataManage.lifeline.param.LifelineParam;

import java.util.List;
import java.util.Map;

public interface LifelineRepository {
    Map<String, Object> getPage(LifelineParam queParams, int curPage, int pageSize);

    List<Lifeline> queryByParam(LifelineParam param);

    List<LifelineType> queryLifelineTypeAll(String level);

    Lifeline findById(String id);

    void audit(String id,String suggestion,String status);

    void updateById(Lifeline param);
    boolean save(Lifeline lifeline);

    void submit(List<String> ids);

    void updateXsemId(String xsemId, String convertedXsemId);

    void batchDelete(List<String> ids);

    String getMaxNum(String toString);

    Integer countByXsemId(String xsemId);
}
